local FzFixCocosBug={}

--fix 3.10 setTweenType function not in 3.6
local speaceFunc=function()end
ccs.Frame.setTweenType=speaceFunc
--

--fix Armature cache not release bug
--修复ArmatureDataManager缓存的SpriteFrame没有释放的BUG
local ArmatureDataManagerInstance=ccs.ArmatureDataManager:getInstance()
local caches=ArmatureDataManagerInstance.caches or {}
ArmatureDataManagerInstance.caches=caches
local origin_addArmatureFileInfo=ArmatureDataManagerInstance.origin_addArmatureFileInfo or ArmatureDataManagerInstance.addArmatureFileInfo
ArmatureDataManagerInstance.origin_addArmatureFileInfo=origin_addArmatureFileInfo
ArmatureDataManagerInstance.addArmatureFileInfo=function(self,filename)
    caches[filename]=true
    origin_addArmatureFileInfo(self,filename)
end
--

function FzFixCocosBug.clearArmatureCache()
	local remove={}
    for filename, isTrue in pairs(caches) do
    	ccs.ArmatureDataManager:getInstance():removeArmatureFileInfo(filename)
    	table.insert(remove,filename)
    end
    for i, filename in pairs(remove) do
    	caches[filename]=nil
    end
end

return FzFixCocosBug